import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取应用数据
mock.onGet('v7/zentaoappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'appmenu',
        items:  [
            {
	id: '2be499b03e8aba2785cf63e079c901d4',
	name: 'top_menus',
	text: '顶部菜单',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '顶部菜单',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '',
	resourcetag: '',
	items: [
		{
	id: '8CD06207-EEB3-4F6B-A532-E28B797B203C',
	name: 'menuitem12',
	text: '我的收藏',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '我的收藏',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: true,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '_2',
	resourcetag: '',
},
		{
	id: '885119A5-EBD5-42E2-A9AD-CECBF403ADE6',
	name: 'menuitem9',
	text: '我的地盘',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '我的地盘',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto10',
	resourcetag: '',
},
		{
	id: '326619b4fb6af93bdeed04e5dcbf029a',
	name: 'menuitem3',
	text: '产品主页',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '产品主页',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto1',
	resourcetag: '',
},
		{
	id: '743c132e78e3c231d195ecd66fbd4a85',
	name: 'menuitem2',
	text: '项目主页',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '项目主页',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto6',
	resourcetag: '',
},
		{
	id: '8c190ff0dc037afa1c9bd4c6a473313d',
	name: 'menuitem1',
	text: '测试主页',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '测试主页',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto9',
	resourcetag: '',
},
		{
	id: '1064218E-C42A-4534-9402-5ECFD4697951',
	name: 'menuitem10',
	text: '用例库',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '用例库',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto15',
	resourcetag: 'IBZ_LIB_M',
},
		{
	id: 'BBD41A12-8E6A-4893-A647-BB76A575FF0B',
	name: 'menuitem11',
	text: '用户',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '用户',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto19',
	resourcetag: 'IBZ_LIB_M',
},
		{
	id: 'AAADCE5D-2685-4C0A-9251-8731E49443A0',
	name: 'menuitem7',
	text: 'iBiz软件生产管理',
	type: 'MENUITEM',
	counterid: '',
	tooltip: 'iBiz软件生产管理',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'Auto8',
	resourcetag: '',
},
	],
},
            {
	id: '0c09750969133187f7284fc78d6abb46',
	name: 'left_exp',
	text: '左侧分页导航',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '左侧分页导航',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '',
	resourcetag: '',
	items: [
		{
	id: 'd69dc5da5fec042124ed71785112a2ed',
	name: 'menuitem4',
	text: '产品',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '产品',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'fa fa-cubes',
	icon: '',
	textcls: '',
	appfunctag: 'Auto2',
	resourcetag: 'PRODUCTLEFT',
},
		{
	id: '1bc9bde6c2735da9d300fc5925d5ecf8',
	name: 'menuitem5',
	text: '项目',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '项目',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'fa fa-stack-exchange',
	icon: '',
	textcls: '',
	appfunctag: 'Auto5',
	resourcetag: '',
},
		{
	id: '8786ECB6-7892-4548-943A-C94D05E9CA86',
	name: 'menuitem6',
	text: '测试',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '测试',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'fa fa-cogs',
	icon: '',
	textcls: '',
	appfunctag: 'Auto11',
	resourcetag: '',
},
	],
},
            {
	id: 'fa4f78c182d429862b14a5a2f7c516e1',
	name: 'bottom_exp',
	text: '底部导航区',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '底部导航区',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '',
	resourcetag: '',
},
            {
	id: '65951b0f0e0015d9af6f4f0e0ee337ae',
	name: 'footer_center',
	text: '底部中间菜单',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '底部中间菜单',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '',
	resourcetag: '',
},
            {
	id: '040DDDF0-C6D9-4250-832D-0435289C137D',
	name: 'menuitem13',
	text: '隐藏菜单项',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '隐藏菜单项',
	expanded: false,
	separator: false,
	hidden: true,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: '',
	resourcetag: '',
},
        ],
    }];
});

